<div class="page">
    <div class="hd">
        <h1 class="page_title">  推广列表 </h1>
    </div>
    <div class="bd">
        <div class="weui_cells_access weui_cells">
            <a class="weui_cell" href="ad_add">
                <div class="weui_cell_bd weui_cell_primary">
                    <p>
                        新增推广
                    </p>
                </div>
                <div class="weui_cell_ft"></div>
            </a>
            <a class="weui_cell" href="ad_manage">
                <div class="weui_cell_bd weui_cell_primary">
                    <p>
                        推广管理
                    </p>
                </div>
                <div class="weui_cell_ft"></div>
            </a>
        </div>
        <div class="weui_cells_title">
            我发布的推广
        </div>
        <div class=" weui_cells_access">
                <?php foreach($cad as $article){?>
                    <div class="weui_cells">
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>
                                <p style="border-bottom: 1px solid #ccc;line-height: 20px;padding: 15px;"><?php t_($article->title);?></p>
                            </p>
                            <p style="height: 200px;overflow: hidden">
                                <img src=" <?php t_($article->pic);?> " alt="" style="width: 100%;height:auto;">
                            </p>
                            <p style="text-align: right">
                                <a href="<?php t_($article->url);?>" class="weui_btn weui_btn_mini weui_btn_primary">测试</a>
                                <a href="ad_add?id=<?php t_($article->id);?>" class="weui_btn weui_btn_mini weui_btn_plain_primary">修改</a>
                                <a href="ad_delete?id=<?php t_($article->id);?>" class="weui_btn weui_btn_mini weui_btn_warn">删除</a>
                            </p>
                        </div>
                    </div>

                <?php }?>

    </div>
</div>
